package com.example.demo.dao;

import com.example.demo.pojo.Record;
import com.example.demo.pojo.User;
import com.example.demo.utils.AbsentUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface AdminMapper {
    List<Record> selectAllRecord();
    List<AbsentUser> selectAbsentUser();
    List<User> selectAllUser();
    int addUser(User user);
    int makeUserOn(int Uid);
    int makeUserOff(int Uid);
    int updateUser(User user);
    String AdminLogin(String Aid);
}
